package com.anolesoft.yr.mbus.prod.pack.mapper;

import com.anolesoft.yr.mbus.prod.pack.dto.ProdPackageRelSaveDTO;
import com.anolesoft.yr.mbus.prod.pack.dto.ProdPackageServiceDeleteDTO;
import com.anolesoft.yr.mbus.prod.pack.sql.ProdPackageRelSQL;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProdPackageRelMapper {

    //新增产品套餐服务关系信息表
    @Insert(ProdPackageRelSQL.SAVE_PROD_PACKAGE_REL)
    int saveProdPackageRel(ProdPackageRelSaveDTO prodPackageRelSaveDTO);

    //删除产品套餐服务关系信息表
    @Delete(ProdPackageRelSQL.DELETE_PROD_PACKAGE_REL)
    int deleteProdPackageRel(@Param("prodPackageUid") String prodPackageUid, @Param( "prodPackageServiceDeleteDTOList" ) List<ProdPackageServiceDeleteDTO> prodPackageServiceDeleteDTOList);

}
